/**
 * @description 用户部门管理
 * @author zhu_liangyu
 * @since 2021/12/23
 */

import { OrgServiceApi } from "./_org";
import { AxiosResponse } from "axios";
import { objectToUrlParams } from "@/utils/common";
import service from "@/api";
class UserGroupRoleServiceApi extends OrgServiceApi {
  toggleUserDeptRole(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/toggleUserDeptRole";
    url += objectToUrlParams(params, true);
    return service.post(url, bean);
  }
}
const userGroupRoleServiceApi = new UserGroupRoleServiceApi("/UserGroupRoleService");

export default userGroupRoleServiceApi;
